cpuidle and xenpm small cleanups.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 10:10:31 +0000 (10:10 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 10:10:31 +0000 (10:10 +0000)
Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
tools/misc/xenpm.c
xen/arch/x86/acpi/cpu_idle.c

index 6dd4c691fe667149cce88240f39d036c9ba16d87..5f7fbc0617bfc4d8494b3ccaef5aecfd5101be7d 100644 (file)
@@ -16,9 +16,6 @@
  * Place - Suite 330, Boston, MA 02111-1307 USA.
  */
 
-/* to eliminate warning on `strndup' */
-#define _GNU_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index ede3ec1df6e56582de21437bb71f217a3984c48a..f8302d1f54627b2bf97306af05b777284915e537 100644 (file)
@@ -220,15 +220,9 @@ static void acpi_processor_idle(void)
     if ( !cx )
     {
         if ( pm_idle_save )
-        {
-            printk(XENLOG_DEBUG "call pm_idle_save()\n");
             pm_idle_save();
-        }
         else
-        {
-            printk(XENLOG_DEBUG "call acpi_safe_halt()\n");
             acpi_safe_halt();
-        }
         return;
     }